


#include "mytimer.h"

MyTimer::MyTimer()
{
    curValue = 0;
    QTimer *timer = new QTimer(this);
    connect(timer, SIGNAL(timeout()), this, SLOT(run()));
    timer->start(1000);
}
void MyTimer::run()
{

        ++curValue;
        emit valueChanged(curValue);

}
